package cc.cix.hq.org.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author cix
 */
@Data
@ApiModel(value = "DeptDTO对象", description = "部门")
public class DeptReq {

    @ApiModelProperty("部门 ID")
    private Long id;

    @ApiModelProperty("父级 ID")
    private Long parentId;

    @NotBlank(message = "部门名称不能为空")
    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("排序")
    private Integer orderNum;

}
